import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;

public class InputRead {
    public static void main(String[] args) throws IOException {
        File f = new File("./input.txt");
        f.createNewFile();
        InputStream inputStream = new FileInputStream("./input.txt");
        //准备一个空数组
        byte[] bytes = new byte[1024];
        //读取数据
        int n = inputStream.read(bytes);
        for (int i = 0; i<n;i++) {
            System.out.printf("0X%x ",bytes[i]);
        }
        inputStream.close();
    }
}
